package spring.pojo2;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 */
@Component
public class Teacher {
    public String name="泡泡";
    @Autowired
    Courses Cs;

//    public String getName() {
//        return name;
//    }
//
//    public void setName(String name) {
//        this.name = name;
//    }

    public Courses getCs() {
        return Cs;
    }

    public void setCs(Courses cs) {
        Cs = cs;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "name='" + name + '\'' +
                ", course=" + Cs +
                '}';
    }
}
